package com.janwen.j2se.reflect;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author janwen
 * Jun 18, 2012
 */
public class People {


	@Override
	public String toString() {
		return "People [age=" + age + ", name=" + name + ", toString()="
				+ super.toString() + "]";
	}

	public People() {
		super();
	}

	public People(int age, String name) {
		super();
		this.age = age;
		this.name = name;
	}

	static final Log logger = LogFactory.getLog(People.class);
	private int age;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private String name;

	public void sayHello() {
		logger.info(toString());
		logger.info("hello Qianpin");
	}
}
